import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView1 from "@/views/LoginView1";
import Home from "@/views/Home";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'login',
        component: LoginView1,
        hidden: true
    },
    {
        path: '/about',
        name: 'about',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue'),
        hidden: true

    },
    {
        path: '/home',
        name: 'Home',
        component: Home,
        hidden: true

    },
    // {
    //     path: '/home',
    //     name: '用户管理',
    //     component: home,
    //     children: [
    //         {
    //             path: '/userreg',
    //             name: '用户注册',
    //             component: userreg,
    //         },
    //         {
    //             path: '/usershenpi',
    //             name: '用户审批',
    //             component: UserShenPi,
    //         }
    //     ]
    // },
    // {
    //     path: '/home',
    //     name: '系统管理',
    //     component: home,
    //     children: [
    //         {
    //             path: '/sysbak',
    //             name: '系统备份',
    //             component: sysbak,
    //         },
    //         {
    //             path: '/syslog',
    //             name: '系统日志',
    //             component: syslog,
    //         }
    //     ]
    // }


]

const router = new VueRouter({
    routes
})

export default router
